<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<LINK href="style.css" rel=stylesheet type=text/css>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<p><strong>FACTURA - VETERINARIA HELPME </strong></p>
<form id="form1" name="form1" method="post" action="FacturaInsertarServlet">
<%@page import="java.util.Collection, appVeterinaria.modelo.Factura, appVeterinaria.negocio.GestionFactura, appVeterinaria.modelo.Servicio;"%>
<%
GestionFactura negocio = new GestionFactura();
Collection<Servicio> listado = negocio.listarServicio();
%> 
<table width="500" height="104" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="108">Fecha de registro:</td>
      <td colspan="2"><label>
        <input type="text" name="feReg" id="feReg" />
      </label></td>
    </tr>
    <tr>
      <td>IdCita:</td>
      <td colspan="2"><label>
        <input type="text" name="idCita" id="idCita" />
      </label></td>
    </tr>
    <tr>
      <td>Servicios:</td>
      <td width="146"><label></label></td>
      <td width="146">Cantidad:</td>
    </tr>
    <tr>
      <td><div align="right">1) </div></td>
      <td><label>
        <select name="s1">
        <%for (Servicio s : listado){%>
        
        <option value=<%=s.getIdServicio() %>><%=s.getDescripcion()%></option>
          <%}%>
        </select>
      </label></td>
      <td><input type="text" name="c1" id="c1" value="0" /></td>
    </tr>
    <tr>
      <td><div align="right">2)</div></td>
      <td><select name="s2">
      <%for (Servicio s : listado){%>
        
        <option value=<%=s.getIdServicio() %> ><%=s.getDescripcion()%></option>
          <%}%>
      </select></td>
      <td><input type="text" name="c2" id="c2" value="0" /></td>
    </tr>
    <tr>
      <td><div align="right">3)</div></td>
      <td><select name="s3">
      <%for (Servicio s : listado){%>
        
        <option value=<%=s.getIdServicio() %> ><%=s.getDescripcion()%></option>
          <%}%>
      </select></td>
      <td><input type="text" name="c3" id="c3" value="0" /></td>
    </tr>
    
    <tr>
  <td align="center" colspan="3"><input name="submit" type="submit" value="Guardar" />
          <input name="button" type="button" onClick="window.location='facturaBuscar.jsp' " value="Regresar" />  </td>
  </tr>
  </table>
  </form>
</body>
</html>